#ifndef LOGPASSWORDAUTH_H
#define LOGPASSWORDAUTH_H

#include <dabstractdialog.h>
//#include <DDialog>
#include "ddialog.h"
#include <DLabel>
//#include <DPasswordEdit>
#include "dpasswordedit.h"
#include <QPushButton>
#include <QWidget>
#include <QTimer>
DWIDGET_USE_NAMESPACE
class LogPasswordAuth : public DDialog
{
public:
    LogPasswordAuth(QWidget *parent = nullptr);
    void initUI();
    void initConnections();

    QString getPasswd();

public slots:
    void slotOkBtnClicked();
    void slotButtonClicked(int index, const QString &text);

private:
    void setPasswd(QString str);
    QString m_passwd;
    Dtk::Widget::DPasswordEdit *m_edt;
    QPushButton *m_okBtn, *m_cancleBtn;
    QTimer *m_timer;
};

#endif  // LOGPASSWORDAUTH_H
